//
   Created by moyu on 2017/4/9.
-sidebar = sidebar || {};
div.sidebar
  div.sidebar-module.sidebar-module-inset
    h4= "关于"
    p!= conf.sidebar.about
  //div.sidebar-module
  //  h4= "搜索"
  //  div.input-group
  //    input.form-control(type="search", placeholder="搜索文章")
  //    span.input-group-btn
  //      button.btn.btn-default
  //        i.fa.fa-search
  div.sidebar-module
    h4= "近期文章"
    ul.sidebar-module-list
      each re in sidebar.recent  || []
        li(style="margin-bottom: 4px;")
          a(href="/article/"+re._id)= re.title
  div.sidebar-module
    h4= "标签"
    ul.sidebar-module-list
      each tag in sidebar.tags  || []
        li
          a(href="/tag/"+tag.name)= tag.name
          span.sidebar-module-list-count= tag.count
  div.sidebar-module
    h4= "友链"
    ul(style="padding-left: 20px;")
      each fr in conf.sidebar.friends  || []
        li
          a(href=fr.link target="_blank")= fr.name